#include "no_blocking_policy.h"

void network::no_blocking_policy::set_blocking(int sock)
{
	int opts = fcntl(sock, F_GETFL);
	if(opts < 0) {
		return;
	}
	opts = opts | O_NONBLOCK;
	fcntl(sock, F_SETFL, opts);
}

